<script setup lang='ts'>
import { VtNotification } from "@/components/Notification/index"
import { h } from "vue";

let seed = 1

function handleOpenDuration() {
  VtNotification({
    title: 'notify - ' + seed++,
    duration: 0,
    message: h('i', { style: 'color: teal' }, '持续时间默认4000ms, duration 设置为0，则不自动关闭'),
  })
}

function handleOpenShowClsoe() {
  VtNotification({
    title: 'notify - ' + seed++,
    showClose: false,
    message: '不显示关闭按钮，默认显示',
  })
}

</script>

<template>
  <div class='vt-view__container'>
    <div class="vt-view__row">
      <vt-button @click="handleOpenDuration">持续时间(单位毫秒)，默认4000ms</vt-button>
      <vt-button @click="handleOpenShowClsoe">不显示关闭按钮，默认显示</vt-button>
    </div>

  </div>
</template>

<style scoped lang='scss'></style>./renderVnode